<?php
$smarty->configLoad($lang . '/shop.module.php');
$language = parse_ini_file($lang . '/breadcrumb.module.php', true);
$breadcrumb = $language['shop'];

$sql = 'SELECT * FROM '.DB_LOGIN.'.aionshop_items WHERE itemCategory = :cat';
$dbh = $connection->prepare($sql);
$dbh->bindValue(':cat', $_GET['id']);
$dbh->execute();
foreach($dbh->fetchAll(PDO::FETCH_ASSOC) as $row){
	$value[] = $row;
}
$smarty->assign('shop', $value);
$template = 'shop/cat.tpl';
?>